home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / csim / source.lha / source / C++SIM / Examples / README < prev   
Text File  |  1993-06-14  |  2KB  |  45 lines

  1. /*
  2.  * Copyright (C) 1993
  3.  *
  4.  * Department of Computing Science,
  5.  * The University,
  6.  * Newcastle upon Tyne,
  7.  * UK.
  8.  */
  9.  
  10. This director contains an example of a simulation written using the simulation
  11. package. The example is taken from the book by Isi Mitrani (Simulation
  12. Techniques for Discrete Event Systems p22).
  13.  
  14. The simulation is of a service which attempts to execute as many requests for
  15. jobs as possible. The job requests are queued until the service can deal with
  16. them. However, the service is prone to failures, and so jobs started will be
  17. delayed until the service has been reactivated.
  18.  
  19. The classes provided include:
  20.  
  21.     Arrivals - This class controls the rate at which Jobs arrive at
  22.            the service (Machine)
  23.  
  24.     Breaks - This class controls the availability of the Machine by
  25.          "killing" it and restarting it at intervals drawn from
  26.          a Uniform distribution.
  27.  
  28.     Job - This class represents the jobs which the Machine must process.
  29.  
  30.     Machine - This is the Machine on which the service resides. It obtains
  31.           jobs from the job queue for the service and then attempts to
  32.           execute them. The machine can fail and so the response time for
  33.           jobs is not guaranteed to be the same.
  34.  
  35.     MachineShop - This is the main part of the simulation which starts the
  36.               various processes (Scheduler, Arrivals, Machine, Job)
  37.               involved. It also prints out statistics for the response time
  38.               for the jobs.
  39.  
  40.     Queue - This represents the queue which Jobs are placed on prior to being
  41.         used by the Machine (service).
  42.  
  43.     Main - This is the body of the program which initializes the threads package
  44.            prior to the simulation starting.
  45.